package com.selen.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author Selen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "RoleInsertDTO", description = "角色添加DTO")
public class RoleInsertDTO implements Serializable {

    /**  角色名称  */
    @NotEmpty(message = "角色名称不能为空")
    @Schema(description = "角色名称", example = "程序员")
    private String title;

    /**  角色描述  */
    @Schema(description = "角色描述", example = "代码编写")
    private String info;

}